package be.bonamis.umpire.domain.notary;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

@Entity
@IdClass(BaremaSliceId.class)
public class BaremaSlice {

	@Id
	@ManyToOne
	@JoinColumn(name="barema_id")
	private Barema barema;
	@Id
	@OneToOne
	@JoinColumn(name="slice_id")
	private Slice slice;
	private BigDecimal rate;
	
	public Barema getBarema() {
		return barema;
	}

	public void setBarema(Barema barema) {
		this.barema = barema;
	}

	public Slice getSlice() {
		return slice;
	}

	public void setSlice(Slice slice) {
		this.slice = slice;
	}

	public BigDecimal getRate() {
		return rate;
	}

	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}

}
